Skip to content

fix: Linux release glibc compatibility - #46

Merged
0dragosh merged 1 commit into
mainfrom
fix/glibc-compat
Apr 16, 2026
Merged

fix: Linux release glibc compatibility#46
0dragosh merged 1 commit into
mainfrom
fix/glibc-compat

Conversation

@0dragosh

@0dragosh 0dragosh commented Apr 16, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes #45

Build Linux release artifacts on Ubuntu 22.04 instead of ubuntu-latest so the published GNU binaries stay compatible with Ubuntu 22.04 / glibc 2.35 environments.

Root Cause

The release workflow was building x86_64-unknown-linux-gnu and aarch64-unknown-linux-gnu artifacts on ubuntu-latest, which can link against a newer glibc than Ubuntu 22.04 provides. That makes cargo-binstall installs fail at runtime with errors like GLIBC_2.39 not found.

Changes

  • pin Linux release asset jobs to ubuntu-22.04
  • add an integration test that fails if those GNU targets drift back to ubuntu-latest

Validation

  • cargo test --locked test_release_linux_binaries_target_ubuntu_22_04
  • nix develop -c cargo fmt --all -- --check
  • nix develop -c cargo clippy --locked --all-targets -- -D warnings

Notes

cargo test --locked --all-targets still fails on this nix-darwin machine in three pre-existing hook integration tests unrelated to this workflow change:

  • test_hooks_install_adds_managed_hook_even_with_other_cwt_like_command
  • test_hooks_install_patches_settings_json
  • test_hooks_install_idempotent

@0dragosh 0dragosh changed the title [codex] Fix Linux release glibc compatibility Fix: Linux release glibc compatibility Apr 16, 2026
@0dragosh
0dragosh marked this pull request as ready for review April 16, 2026 09:01
@0dragosh 0dragosh changed the title Fix: Linux release glibc compatibility fix: Linux release glibc compatibility Apr 16, 2026
@0dragosh
0dragosh merged commit f6179d8 into main Apr 16, 2026
3 checks passed
@0dragosh
0dragosh deleted the fix/glibc-compat branch April 16, 2026 09:02
@github-actions github-actions Bot mentioned this pull request Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CWT seems to not recognise local GLIB_C.

1 participant